---
import { getCollection, render } from "astro:content";
import Base from "/components/Base.astro";
import Toolbar from "/components/Toolbar.astro";
import "/styles/main.css";
export async function getStaticPaths() {
const posts = await getCollection("blog");
return posts.map((post) => ({
params: { slug: post.id },
props: { post },
}));
}
const { post } = Astro.props;
const { Content } = await render(post);
---
{post.data.title}